package com.vip8.recorder.service.service;

import com.vip8.recorder.api.model.base.MultiResult;
import com.vip8.recorder.api.model.dto.AppVersionDTO;
import com.vip8.recorder.api.model.dto.HeartbeatDTO;
import com.vip8.recorder.api.model.params.DeviceParams;
import com.vip8.recorder.api.model.params.VersionParam;

import java.util.List;

public interface DeviceService {

    /**
     * 设备心跳
     * @param deviceParams
     * @return
     */
    Boolean heartbeat(DeviceParams deviceParams);

    /**
     * 批量更新心跳信息
     * @param deviceParams
     * @return
     */
    Boolean batchHeartbeat(List<DeviceParams> deviceParams);

    /**
     * 检查设备版本号
     * @param param
     * @return
     */
    AppVersionDTO checkVersion(VersionParam param);


    /**
     * 查询人员分布
     * @param deviceParams
     * @return
     */
    MultiResult<HeartbeatDTO> queryPersonDistribution(DeviceParams deviceParams);

    /**
     * 轨迹查询
     * @param deviceParams
     * @return
     */
    MultiResult<HeartbeatDTO> queryTrack(DeviceParams deviceParams);

}
